<?php

class Error_Controller extends Controller {
    
    function index($message)
    {
	$message = $message[0];
        if ($message=='404')
        {
                $page = '404';
        }
        else
        {
                $page = 'error';
        }
	if (!DEVELOPMENT_ENVIRONMENT)
	{
	    error_log($message);
	    $page = 'error_user';
	}
	$this->view->set('message',$message);
	$this->view->render($page);
        
    }

}